<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script type="text/javascript" src="http://localhost:63342/cloud-maintenance/cmt-sso/static/jquery-1.9.1.min.js"></script>
<script type="text/javascript">

    $.ajaxSetup({
        complete:function(XMLHttpRequest,textStatus){
            if(textStatus=="parsererror"){
                $.messager.alert('提示信息', "登陆超时！请重新登陆！", 'info',function(){
                    window.location.href = 'login.jsp';
                });
            } else if(textStatus=="error"){

                window.location.href = 'http://localhost:8080/login?service=/a.html';
            }
        }
    });
    $.ajax({
        url: 'http://localhost:1001/home/get',
        type: 'post',
        data: {},
        dataType: 'json',
        success: function (data) {
            if (data.status == 302) {
                location.href = data.location;
            }
        }
    });

</script>
<body>
123333333333
</body>
</html>